package demo3;

public class Duck extends Animal implements IFly,IRun,ISwim{
    public Duck(String name) {
        super(name);
    }

    @Override
    public void eat() {
        System.out.println(this.name + "正在吃鸭粮....");
    }

    @Override
    public void iFly() {
        System.out.println(this.name + "正在使用小鸭翅膀飞...");
    }

    @Override
    public void iRun() {
        System.out.println(this.name + "正在使用鸭腿腿跑步....");
    }

    @Override
    public void iSwim() {
        System.out.println(this.name + "正在使用鸭腿腿游泳....");
    }
}
